package io.demo.strategy;

import static java.lang.System.out;

/**
 * @author create by zhangpengfei at 2021/9/29 14:15
 */

public class MallardDuck extends Duck{

    public MallardDuck() {
        quackBehavior = new Quack();
        flyBehavior = new FlyWithWings();
    }

    @Override
    public void display() {
        out.println(" I'm a real Mallard duck");
    }
}
